home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 309 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: mail2news.demon.co.uk!sisyphus.demon.co.uk
  2. From: Dave.Sparks@sisyphus.demon.co.uk
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: PPC compilers
  5. Date: Sat, 6 Jan 96 14:25:23 +0000 (GMT)
  6. Organization: to be supplied
  7. Message-ID: <19960106.4EE928.CF59@sisyphus.demon.co.uk>
  8. References: <john.hendrikx.40ka@grafix.xs4all.nl> <MQAQx*XOe@yaps.rhein.de> <4bqhnf$6g5@sunsystem5.informatik.tu-muenchen.de> <jasonb.820051107@cs.uwa.edu.au> <4c9i2l$h3i@sunsystem5.informatik.tu-muenchen.de> <4ck47h$g07@maureen.teleport.com>
  9. X-NNTP-Posting-Host: sisyphus.demon.co.uk
  10. In-reply-to: sschaem@teleport.com's message of 5 Jan 1996 21:12:17 GMT
  11. X-Attribution: DaveS
  12. Content-Length: 1278
  13. X-Lines: 27
  14. X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!sisyphus.demon.co.uk
  15.  
  16. >>>>> "SS" == Stephan Schaem <sschaem@teleport.com> writes:
  17.  
  18.   SS>  I cant see how people can write code without knowing what data or
  19.   SS> type they manipulate...
  20.  
  21. Real-world programmers do it all the time.  If you ever want to
  22. join us, you'll have to learn to do it too.  One of many examples
  23. is the ANSI C definition of the 'clock' function: the value
  24. returned is of type 'clock_t', which is defined in a
  25. system-dependent header file.  SAS/C defines 'clock_t' to be an
  26. unsigned 32-bit value, but other implementations can (and do)
  27. define it to be signed or even 64-bit floating-point.  Since the C
  28. arithmetic operations (add, subtract, multiply, divide) are
  29. overloaded (can be used on values of different types) the
  30. programmer doesn't need to know what 'clock_t' is defined to be.
  31. It isn't difficult to write ANSI C code which will compile and run
  32. on different architectures: what is difficult is to convert C
  33. which was written for one specific architecture, with no thought
  34. given to portability.
  35.  
  36. Incidentally, your References: header was broken (truncated in the
  37. middle of a reference).  You need to write yourself a new newsreader.
  38.  
  39. -- 
  40.         Dave.Sparks@sisyphus.demon.co.uk        (Staffordshire, England)
  41.  
  42.  ... details are more implementation-dependant than defined.
  43.  
  44.  
  45.